<?php
/* @var $this ClientContactPersonController */
/* @var $model ClientContactPerson */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'client-contact-person-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_lastname'); ?>
		<?php echo $form->textField($model,'cp_lastname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cp_lastname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_firstname'); ?>
		<?php echo $form->textField($model,'cp_firstname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cp_firstname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_middlename'); ?>
		<?php echo $form->textField($model,'cp_middlename',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cp_middlename'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_cellphone_no'); ?>
		<?php echo $form->textField($model,'cp_cellphone_no'); ?>
		<?php echo $form->error($model,'cp_cellphone_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_telephone_no'); ?>
		<?php echo $form->textField($model,'cp_telephone_no'); ?>
		<?php echo $form->error($model,'cp_telephone_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cp_email'); ?>
		<?php echo $form->textField($model,'cp_email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'cp_email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'establishment_id'); ?>
				<?php echo $form->textField($model,'establishment_id'); ?>

		<?php echo $form->error($model,'establishment_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->